package com.genuine.nfc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.genuine.hyjj.R;

public class NFCMainActivity extends Activity {
	private Button MyVerifyBtn, MyNdefBtn;
	private Intent intent;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.nfcmain);
        
        MyVerifyBtn = (Button)findViewById(R.id.verify_btn);
        MyNdefBtn = (Button)findViewById(R.id.ndef_btn);
        
        MyVerifyBtn.setOnClickListener(new MyVerifyBtnOnClick());
        MyNdefBtn.setOnClickListener(new MyNdefBtnOnClick());
    }
    
    private class MyVerifyBtnOnClick implements OnClickListener {
		public void onClick(View v) {
			intent = new Intent(NFCMainActivity.this, VerifyActivity.class);
			startActivity(intent);
		}
    }
    
    private class MyNdefBtnOnClick implements OnClickListener {
		public void onClick(View v) {
			intent = new Intent(NFCMainActivity.this, NdefActivity.class);
			startActivity(intent);
		}
    }
}